/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.sevenpriciples.crp.crp.compliance.impl;

import za.ac.cput.sevenpriciples.crp.crp.compliance.Bonus;
import za.ac.cput.sevenpriciples.crp.crp.compliance.EmployeeImp;

/**
 *
 * @author 210227257
 */
public class PartTimeImp extends EmployeeImp implements Bonus{
    public PartTimeImp(){
        
    }
    public PartTimeImp(String name, String surname, int number, double salary){
        super(name, surname, number, salary);
    }

    @Override
    public double calculateBonus() {
        return 0.15 * super.getEmployeeSalary();
    }
    
}
